Learn R Programming

oce (version 0.9-18)

[[,adp-method: Extract Something From an adp Object

Description

In addition to the usual extraction of elements by name, some shortcuts are also provided, e.g. u1 retrieves v[,1], and similarly for the other velocity components. The a and q data can be retrived in raw form or numeric form; see examples.

Usage

## S3 method for class 'adp':
[[(x, i, j, ...)

Arguments

x
An adp object, i.e. one inheriting from adp-class.
i
The item to extract.
j
Optional additional information on the i item.
...
Optional additional information (ignored).

Examples

Run this code
data(adp)
head(adp[["v"]][,,1])

Run the code above in your browser using DataLab